﻿using DevExpress.Xpo;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Model
{
    public class P_Product : BaseXPLiteObjectClass
    {
        public P_Product(Session session) : base(session) { }
        public override void AfterConstruction()
        {
            base.AfterConstruction();
        }
        string fProductID;
        [Key, Persistent]
        public string ProductID
        {
            get { return fProductID; }
            set { SetPropertyValue<string>("ProductID", ref fProductID, value); }
        }
        P_Brand fBrandID;
        public P_Brand BrandID
        {
            get { return fBrandID; }
            set { SetPropertyValue<P_Brand>("BrandID", ref fBrandID, value); }
        }
        P_Category fCategoryID;
        public P_Category CategoryID
        {
            get { return fCategoryID; }
            set { SetPropertyValue<P_Category>("CategoryID", ref fCategoryID, value); }
        }
        string fProductCode;
        public string ProductCode
        {
            get { return fProductCode; }
            set { SetPropertyValue<string>("ProductCode", ref fProductCode, value); }
        }
        string fProductName;
        public string ProductName
        {
            get { return fProductName; }
            set { SetPropertyValue<string>("ProductName", ref fProductName, value); }
        }
        string fProductSpec;
        public string ProductSpec
        {
            get { return fProductSpec; }
            set { SetPropertyValue<string>("ProductSpec", ref fProductSpec, value); }
        }
        int fUnit;
        public int Unit
        {
            get { return fUnit; }
            set { SetPropertyValue<int>("Unit", ref fUnit, value); }
        }
        string fBarCode;
        public string BarCode
        {
            get { return fBarCode; }
            set { SetPropertyValue<string>("BarCode", ref fBarCode, value); }
        }
        int fStatusID;
        public int StatusID
        {
            get { return fStatusID; }
            set { SetPropertyValue<int>("StatusID", ref fStatusID, value); }
        }
        decimal fSalePrice;
        public decimal SalePrice
        {
            get { return fSalePrice; }
            set { SetPropertyValue<decimal>("SalePrice", ref fSalePrice, value); }
        }
        decimal fSalePriceLowest;
        public decimal SalePriceLowest
        {
            get { return fSalePriceLowest; }
            set { SetPropertyValue<decimal>("SalePriceLowest", ref fSalePriceLowest, value); }
        }
        decimal fCostPrice;
        public decimal CostPrice
        {
            get { return fCostPrice; }
            set { SetPropertyValue<decimal>("CostPrice", ref fCostPrice, value); }
        }
    }
}
